﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CSP.Model.Entities;
using CSP.Model.Model;

namespace CSP.Model.Presenter
{
    public class FollowingPresenter
    {
        private IFollowingPresenter view = null;
        private ModelManager model = new ModelManager();

        public FollowingPresenter(IFollowingPresenter iView)
        {
            view = iView;
        }

        public void Load()
        {
            try
            {
                List<UserColleague> colleagues = model.GetColleagues();
                view.BindFollowing(colleagues);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
    }
}
